$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f:19.2;

.home {
  position: relative;
  width: 100%;
  padding-top: 8vw;
  .main{
    width: 65vw;
    margin: 0 auto;
    .tag {
      border-radius: 6px;
      border: 1px solid rgba(224, 28, 28, 0.60);
      width: fit-content;
      color: rgba(224, 28, 28, 1);
      font-size: $fontSize_18;
      font-weight: 600;
      padding: 5px 10px;
      margin: 1vw 0;
    }
    .title{
      font-size: $fontSize_32;
      font-weight: bold;
    }
    .time{
      color: #666;
      font-size: $fontSize_16;
      margin-top: 5px;
    }
    .section1{
      display: flex;
      align-items: center;
      justify-content: flex-end;
      a {
        color: #111;
        font-size: $fontSize_14;
      }

      span {
        width: 8px;
        height: 2px;
        background-color: rgba(224, 28, 28, 1);
        margin: 0 1vw;
      }
      p{
        color: #666;
        font-size: $fontSize_14;
      }
    }
    .section2{
      width: 100%;
      border-top: 1px solid #DDD;
      padding: 1.5vw 0;
      margin: 1.5vw 0;
      position: relative;
      .bg{
        position: absolute;
        left: 0;
        top:1.5vw;
        width: 100%;
        text-align: center;
        img{
          max-width: 100%;
          object-fit: contain;
        }
      }
      .html{
        p{
          text-align: justify;
          line-height: 1.6;
          font-size: $fontSize_16;
          margin-bottom: 15px;
        }
        img{
          max-width: 100%;
          object-fit: contain;
        }
      }
      .pager{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 4vw 0;
        .btn {
          border: 1px solid #DDD;
          font-size: $fontSize_16;
          font-weight: 600;
          color: #999;
          padding: 0.6vw 4vw 0.6vw 1vw;
          display: flex;
          align-items: center;
  
          &::before {
            content: '';
            display: block;
            width: 12px;
            height: 3px;
            background: rgba(224, 28, 28, 1);
            margin-right: 8px;
            transition: all 600ms;
            opacity: 0;
            transform: translateX(-10px);
          }
  
          p {
            transform: translateX(-22px);
            transition: all 600ms;
          }
  
          &:hover {
            color: #E01C1C;
  
            &::before {
              opacity: 1;
              transform: translateX(0);
            }
  
            p {
              transform: translateX(0);
            }
          }
        }
        .back{
          color: #999;
          font-size: $fontSize_18;
          font-weight: 500;
          transition: all 600ms;
          &:hover{
            color:rgba(224, 28, 28, 1);
          }
        }
      }
      .related{
        .t{
          font-size: $fontSize_32;
          font-weight: 600;
        }
        .allNews{
          margin-top: 2vw;
          .swiper-container{
            width: 100%;
            a{
              padding: 2vw 1.5vw;
              border: 1px solid #DDD;
              display: block;
              .time{
                color: #333;
                font-size: $fontSize_18;
              }
              .pt{
                color: #111;
                font-size: $fontSize_22;
                font-weight: 600;
                margin: 10px 0;
                transition: all 600ms;
              }
              .tag1{
                color: #999;
                font-size: $fontSize_18;
              }
              .more{
                display: flex;
                justify-content: flex-end;
                margin-top: 2vw;
                .btn{
                  background-color: rgba(224, 28, 28, 1);
                  width: fit-content;
                  padding: 0.3vw 1.8vw;
                  border-radius: 30px;
                  svg{
                    display: block;
                    transition: all 600ms;
                  }
                }
              }
              &:hover{
                .pt{
                  color:rgba(231, 22, 26, 1);
                }
                .more{
                  svg{
                    transform: translateX(10px);
                  }
                }
              }
            }
          }
        }
      }
    }
  }

  .section3{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 6vw;
    .item{
      width: 50%;
      position: relative;
      .bg{
        overflow: hidden;
        img{
          width: 100%;
          display: block;
          object-fit: cover;
          transition: all 600ms;
        }
      }
      .text{
        position: absolute;
        left: 10vw;
        top:50%;
        transform: translateY(-50%);
        color:white;
        .p1{
          color: #FFF;
          font-size: $fontSize_54;
          font-weight: 700;
        }
        .p2{
          color: #FFF;
          font-size: $fontSize_22;
          font-weight: 700;
        }
      }
      .btn{
        position: absolute;
        right:5%;
        bottom:5%;
        border: 2px solid white;
        width: fit-content;
        padding: 0.3vw 1.8vw;
        border-radius: 30px;
        transition: all 600ms;
        svg{
          display: block;
          transition: all 600ms;
        }
        &:hover{
          background-color: rgba(224, 28, 28, 1);
          border-color: rgba(224, 28, 28, 1);
          svg{
            transform: translateX(10px);
          }
        }
      }
      &:hover{
        .bg{
          img{
            transform: scale(1.05);
          }
        }
      }
    }
  }
  @media screen and (max-width: 1024px) {
    padding-top: 70px;
    .main{
      width: 90%;
      .tag{
        font-size: 16px;
        margin: 15px 0;
      }
      .title{
        font-size: 20px;
      }
      .time{
        font-size: 14px;
      }
      .section1{
        a,p{
          font-size: 14px;
        }
      }
      .section2{
        padding: 15px 0;
        margin: 15px 0;
        .html{
          p{
            font-size: 14px;
          }
        }
        .pager{
          margin: 30px 0;
          .btn{
            font-size: 14px;
            padding: 5px 10px 5px 5px;
          }
          .back{
            font-size: 14px;
          }
        }
        .related{
          .t{
            font-size: 18px;
          }
          .allNews{
            margin-top: 20px;
          .swiper-container{
            a{
              padding: 20px;
              .time{
                font-size: 14px;
              }
              .pt{
                font-size: 16px;
              }
              .tag1{
                font-size: 14px;
              }
              .more{
                margin-top: 20px;
                .btn{
                  padding: 5px 25px;
                }
              }
            }
          }
          }
        }
      }
    }
    .section3{
      flex-direction: column;
      .item{
        width: 100%;
        .text{
          left: 5%;
          .p1{
            font-size: 20px;
          }
          .p2{
            font-size: 16px;
          }
        }
        .btn{
          padding: 5px 25px;
          bottom: 20px;
        }
      }
    }
  }
}